import Vue from "vue";
import VueRouter from "vue-router";

const Home = () => import('../components/HelloWorld.vue')

Vue.use(VueRouter);

const routes = [
  {
    path:'',
    redirect:'/home'
  },
  {
    path: "/home",
    component: Home,
    meta: {
      title: '首页'
    }
  },
];

const router = new VueRouter({
  routes,
  mode:'history',
  base:'/vue-for-nginx'
});

export default router;